package com.example.lol.ui.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.lol.R;
import com.example.lol.ui.FirstHomeFragment;
import com.example.lol.ui.SecondHomeFragment;
import com.example.lol.ui.bean.NewBean;

import org.jetbrains.annotations.NotNull;

import java.util.HashMap;
import java.util.Map;

public class MineAdapter extends BaseQuickAdapter<NewBean, BaseViewHolder> {

    public MineAdapter() {
        super(R.layout.demo_five);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewBean newsBean) {
//        baseViewHolder.setText(R.id.tv_news_title, newsBean.getTitle());
//        baseViewHolder.setText(R.id.tv_hot, newsBean.getHot());
//        baseViewHolder.setImageResource(R.id.img_cover, newsBean.getDrawable());
//        baseViewHolder.setImageResource(R.id.tv_lol,newsBean.getLol());
//        baseViewHolder.setImageResource(R.id.tv_icon,newsBean.getIcon());
//        baseViewHolder.setText(R.id.tv_number,newsBean.getNumber());

    }
}
